package com.pkx.guide.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.pkx.guide.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 系统访问记录
 * @author sunsy
 * @since 2022-01-21
 */
@Data
@Schema(name="TSysLogininfor对象", description="系统访问记录")
public class TSysLogininfor extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(name = "访问ID")
    @TableId(value = "info_id", type = IdType.AUTO)
    private Long infoId;

    @Schema(name = "用户账号")
    private String userName;

    @Schema(name = "登录IP地址")
    private String ipaddr;

    @Schema(name = "登录状态（0成功 1失败）")
    private String status;

    @Schema(name = "提示信息")
    private String msg;

    @Schema(name = "访问时间")
    private Date accessTime;

    @Schema(name = "逻辑字段：查询开始日期")
    @TableField(exist = false)
    private String queryStartDate;

    @Schema(name = "逻辑字段：查询结束日期")
    @TableField(exist = false)
    private String queryEndDate;
}
